﻿<span data-bind="visible: leagues().length == 0">No matches at the moment. Try again later.</span>
<ul data-bind="foreach: leagues">
    <li>
        <span data-bind="text: League"></span>
        <ul data-bind="foreach: Matches">
            <li>
                <span data-bind="text: Time"></span>&nbsp;
                <span data-bind="text: HomeTeam"></span>
                <span data-bind="text: HomeGoals"></span>-
                <span data-bind="text: AwayGoals"></span>
                <span data-bind="text: AwayTeam"></span>
                <a class="watch-match" data-bind="attr: { 'href': $root.matchDetailsUrl(Id) }">Watch match</a>
            </li>
        </ul>
    </li>
</ul>
